package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.U_label;

import cn.com.api.mapper.U_labelMapper;

import cn.com.api.service.U_labelService;

/**
 * 
 **/
@Service
public class U_labelServiceImplBase {
	@Autowired
	private U_labelMapper U_labelMapper;

	// 根据id获取
	public U_label findU_labelById(Integer id) {
		U_label u_label = U_labelMapper.findU_labelById(id);
		return u_label;
	}

	// 查看数据集
	public List<U_label> findU_labels() {
		List<U_label> u_labels = U_labelMapper.findU_labels();
		return u_labels;
	}

	// 添加
	public int insertU_label(U_label u_label) {
		int ret_I = U_labelMapper.insertU_label(u_label);
		return ret_I;
	}

	// 修改
	public int updateU_label(U_label u_label) {
		int ret_I = U_labelMapper.updateU_label(u_label);
		return ret_I;
	}

	// 删除
	public int deleteU_label(Integer id) {
		int ret_I = U_labelMapper.deleteU_label(id);
		return ret_I;
	}

	// Foreign keys revelant

	// region Indexs revelant

	// 获取根据parent_id
	public List<U_label> findU_labelsByParent_id(String parent_id) {
		List<U_label> u_labels = U_labelMapper.findU_labelsByParent_id(parent_id);
		return u_labels;
	}

}
